<template>
  <div class="container">
      <top-nav :toLastPath="true">收件箱</top-nav>
    <ul>
      <li v-for="(value,index) in listData" :key="index" @click="goCheck(value)">
        <div class="headerImg">
          <img :src="value.user_info.photo_url"/>
          <div></div>
        </div>
        <div class="name">{{value.user_info.realname}}</div>
        <div class="time">{{value.created_at}}</div>
      </li>
    </ul>
  </div>
</template>

<script>
import topNav from '@/components/topNav';
export default {
  data () {
    return {
      listData:""
    }
  },
  computed:{
      
   
  },
  components: {
      topNav
  },

  methods: {
    async getData(){
      var userToken=window.localStorage.getItem('userToken')
      let res=await this.$axios('/ucenter/getReceivedResumeList',{params:{user_token:userToken}})
      this.listData=res.data.data
    },
    goCheck(value){
      // this.$store.dispatch('setResumeList',value)
      // this.$router.push('/me/checkResume')
      const id=value.id
      this.$router.push({path:'/resumeDetail',query:{id}})
      // this.$currency.navigateTo(`/pages/resumeDetail/main?id=${id}`)
    }
  },
  activated(){
    this.getData();
  }
}
</script>

<style scoped>
.container{background-color: #F8F8FB;max-height: 100%;padding-top: 10px;min-height: 100%;}
.container ul{width: 100%;margin-top:45px;}
.container ul li{height: 60px;display: flex;justify-content: row;background-color: #fff;margin-bottom: 5px;}
.headerImg{width: 50px;height: 50px;margin-top: 5px;position: relative;}
.headerImg img{position: absolute;width: 50px;height: 50px;left: 10px;top: 0;}
.headerImg div{width: 10px;height: 10px;position: absolute;right: -10px;top: -5px;background: #FF0000;border-radius: 10px;}
.name{width: 170px;line-height: 60px;font-size: 17px;color: #000000;letter-spacing: 0;margin-left: 20px;}
.time{font-size: 12px;color: #8E8E93;line-height: 60px;}


</style>
<style>
/* @media screen and(max-width:330px) {
  .headerImg div{width: 10px;height: 10px;position: absolute;right: -20px !important;top: -5px;background: #FF0000;border-radius: 10px;}
} */
  @media(max-width:330px) {
  .headerImg div{width: 10px;height: 10px;position: absolute;right: -20px !important;top: -5px;background: #FF0000;border-radius: 10px;}
}
</style>


